const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function(app) {
	app.use(
		createProxyMiddleware('/api',{
			target: "http://192.17.1.26:8000",
			changeOrigin: true,
			secure: false,
			headers: {
				Connection: 'keep-alive',
			},
			// pathRewrite: {"^/api" : "http://192.168.243.17:8000/api"},
		}),
	);
};
